package com.zhou.core.logana.handle.json;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by zhouyongjun on 2020/6/12
 */
public abstract class AbstractJsonLogAnaHandler implements IJsonLogAnaHandler {
    protected  String key;
    protected  JSONObject jsonObject = new JSONObject();
    protected  long intervalHandleTime;

    @Override
    public String key() {
        return key;
    }

    @Override
    public String value() {
        return jsonObject.toJSONString();
    }

    @Override
    public boolean isZip() {
        return false;
    }

    @Override
    public long getIntervalHandleTime() {
        return intervalHandleTime;
    }

    public void setIntervalHandleTime(long intervalHandleTime) {
        this.intervalHandleTime = intervalHandleTime;
    }


    public JSONObject getJsonObject() {
        return jsonObject;
    }
}
